package com.gscitysfy.cus.drain.modules.inspection.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author Administrator
 * @since 2022-10-14 15:00:46
 */
@Getter
@Setter
@TableName("drain_inspection_rl_user")
public class DrainInspectionRlUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
    private Long cmKid;

    /**
     * 用户id
     */
    private Long cmUserId;

    /**
     * 用户名称
     */
    private String cmUserName;

    /**
     * 用户手机号
     */
    private String cmUserPhone;

    /**
     * 用户所在组织
     */
    private String cmUserOrg;

    /**
     * 关联巡检计划id
     */
    private Long cmPlanId;

    /**
     * 关联维修单id
     */
    private Long cmOrderId;

    @TableField(fill = FieldFill.INSERT)
    private String cmCreator;

    @TableField(fill = FieldFill.UPDATE)
    private String cmModifier;

    private String cmOrgflag;

    private String cmRegflag;

    private Long cmTenantid;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmAddtime;

    @TableField(fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmUptime;

    private Long cmVersion;

    @TableField(fill = FieldFill.INSERT)
    private Boolean cmUsable;
}
